/*******************************************************************************
 * Copyright (c) 2012 Philip Douglas.
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/.
 ******************************************************************************/
package net.pdouglas.revisiondroid;

import net.pdouglas.revision.*;

public class TimerEventHandler implements
		net.pdouglas.revision.TimerEventHandler {

	private TimerService mService;
	
    public TimerEventHandler(TimerService parent) {
    	mService = parent;
    }

	public void handleEvent(TimerEvent event) throws UndefinedEventException {
		// TODO Auto-generated method stub
		throw new UndefinedEventException(event);
	}

    public void handleEvent(TimerEventTick event) {
    	mService.contactListeners();
        mService.updateNotification();
    }

	public void handleEvent(TimerEventAlarm event) {
		// TODO Auto-generated method stub
	}

	public void handleEvent(TimerEventZeroRelax event) {
		mService.zeroRelaxAlarm();
	}

	public void handleEvent(TimerEventNegativeRelax event) {
		// TODO Auto-generated method stub
	}

}
